<template>
  <div>
    <el-form ref="form" :model="form" label-width="80px" style="display: flex; flex-direction: row">
      <el-form-item label="姓名">
        <el-input v-model="form.name" placeholder="请输入姓名" style="width: 200px"></el-input>
      </el-form-item>
      <el-form-item label="所属部门">
        <el-input v-model="form.name" style="width: 200px" placeholder="请输入部门"></el-input>
      </el-form-item>
      <el-form-item label="手机号">
        <el-input v-model="form.name" style="width: 200px" placeholder="请输入手机号"></el-input>
      </el-form-item>
    </el-form>
    <div class="big">
      <div class="one">
        <el-button size="small"><i class="el-icon-search"></i> 查询</el-button>
        <el-button size="small"> <i class="el-icon-refresh-right"></i>重置</el-button>
      </div>
      <div class="two">
        <el-button size="small" style="background-color: rgb(212, 169, 233)"><i class="el-icon-circle-plus-outline"></i>新增用户</el-button>
      </div>
    </div>
    <!-- 弹出框 -->
    <el-dialog title="收货地址" :visible.sync="dialogFormVisible">
  <el-form :model="form">
    <el-form-item label="活动名称" :label-width="formLabelWidth">
      <el-input v-model="form.name" autocomplete="off"></el-input>
    </el-form-item>
    <el-form-item label="活动区域" :label-width="formLabelWidth">
      <el-select v-model="form.region" placeholder="请选择活动区域">
        <el-option label="区域一" value="shanghai"></el-option>
        <el-option label="区域二" value="beijing"></el-option>
      </el-select>
    </el-form-item>
  </el-form>
  <div slot="footer" class="dialog-footer">
    <el-button @click="dialogFormVisible = false">取 消</el-button>
    <el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
  </div>
</el-dialog>
    <!-- 表格 -->
    <el-table :data="tableData" border style="width: 100%;margin-top: 20px;" >
      <el-table-column fixed prop="date" label="id" width="50px" align="center"> </el-table-column>
      <el-table-column prop="name" label="用户名称" align="center"> </el-table-column>
      <el-table-column prop="province" label="账号" align="center"> </el-table-column>
      <el-table-column prop="city" label="手机号" align="center"> </el-table-column>
      <el-table-column prop="address" label="所属角色" align="center"> </el-table-column>
      <el-table-column prop="zip" label="所属职级" align="center"> </el-table-column>
      <el-table-column prop="zip" label="所属部门" align="center"> </el-table-column>
      <el-table-column fixed="right" label="操作" align="center">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
          <el-button type="text" size="small">编辑</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
        tableData:[],
      form: {
        name: ''
      },
      dialogFormVisible: false,
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        },
        formLabelWidth: '120px'
    }
  }
}
</script>
<style scoped>
.big {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
</style>
